#include "atomic_op_asm.h"

RCSID("$NetBSD: membar_ops.S,v 1.1 2011/01/17 07:40:21 skrll Exp $")

	.text

LEAF_ENTRY(_membar_consumer)
	sync
	nop
	nop
	nop
	nop
	nop
	bv	%r0(%rp)
	 nop
EXIT(_membar_consumer)

LEAF_ENTRY(_membar_producer)
	sync
	nop
	nop
	nop
	nop
	nop
	bv	%r0(%rp)
	 nop
EXIT(_membar_producer)

ATOMIC_OP_ALIAS(membar_producer,_membar_producer)
ATOMIC_OP_ALIAS(membar_consumer,_membar_consumer)
ATOMIC_OP_ALIAS(membar_enter,_membar_consumer)
STRONG_ALIAS(_membar_enter,_membar_consumer)
ATOMIC_OP_ALIAS(membar_exit,_membar_producer)
STRONG_ALIAS(_membar_exit,_membar_producer)
ATOMIC_OP_ALIAS(membar_sync,_membar_producer)
STRONG_ALIAS(_membar_sync,_membar_producer)
